package com.example.cloud.model.customer;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;

/**
 * Created by wt on 2019/1/3.
 * 初诊调查
 */
@Entity(name = "new_diagnosis_record")
@Data
@EqualsAndHashCode(callSuper = false)
public class NewDiagnosisRecord extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 姓名
    @Column(name = "name")
    private String name;
    // 出生日期
    @Column(name = "birthday")
    private Date birthday;
    // 性别
    @Column(name = "sex")
    private Integer sex;
    // 婚姻
    @Column(name = "marital")
    private Integer marital;
    // 职业
    @Column(name = "job")
    private Integer job;
    // 文化程度
    @Column(name = "culture")
    private Integer culture;
    // 住址
    @Column(name = "address")
    private String address;
    // 手机号
    @Column(name = "phone")
    private String phone;
    // 患者来源
    @Column(name = "source")
    private String source;
    // 出行
    @Column(name = "travel")
    private String travel;
    // 建议
    @Column(name = "suggest")
    private String suggest;
    // 账户编号
    @Column(name = "account_id")
    private Long accountId;
    // 组织机构编号
    @Column(name = "organ_id")
    private Long organId;
    // 组织机构名称
    @Column(name = "organ_name")
    private String organName;
    @Transient
    private String birthdayStr;
}
